<template>
  <div class="page">
    <van-nav-bar title="页面不存在" left-arrow @click-left="onClickLeft">
      <template #right> </template>
    </van-nav-bar>
    <div class="error">
      <img src="/imgs/网络错误404.png" class="svg-icon" />
      <div>访问的页面不存在</div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    onClickLeft() {
      window.history.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
@404-bg-color: #f3f7ff; // 404背景颜色

* {
  box-sizing: border-box;
}

.page {
  width: 100%;
  height: 100%;
}

.error {
  position: relative;
  .ios-bounce-android;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  .svg-icon {
    width: 80%;
    margin-top: 20%;
  }
  div {
    font-size: 0.28rem;
    color: @sub-color;
  }
}
</style>
